package cn.com.cym.gamezao.exception;

import cn.com.cym.gamezao.base.ResultResponse;

/**
 * 基础的错误日志
 */
public class BaseException extends RuntimeException{
    private static final long serialVersionUID = 1623345883662942088L;


    /**
     * 用于返回到前端json封装
     */
    private ResultResponse resultResponse;


    /**
     * 构造函数
     * @param message message
     * @param resultResponse resultResponse
     */
    public BaseException(String message,ResultResponse resultResponse){
        super(message);
        this.resultResponse=resultResponse;
    }

    public void setResultResponse(ResultResponse resultResponse){
        this.resultResponse=resultResponse;
    }

    public ResultResponse getResultResponse(){
        return this.resultResponse;
    }


}
